// request对象其实是axios实例
import { request } from '@/utils/http'

// 引入ts类型
import { IhospitalSetRes } from './model/hospitalSetTypes'

// 获取医院设置表格数据
export const reqHospitalSets = (
  page: number,
  limit: number,
  hosname?: string,
  hoscode?: string
) => {
  console.log(hosname, hoscode)

  return request.get<any, IhospitalSetRes>(
    `/admin/hosp/hospitalSet/${page}/${limit}`,
    {
      params: {
        hosname,
        hoscode,
      },
    }
  )
}
